package com.selfstudy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统操作日志表
 * </p>
 *
 * @author author
 * @since 2025-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("operation_log")
@ApiModel(value="OperationLog对象", description="系统操作日志表")
public class OperationLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志ID")
    @TableId(value = "log_id", type = IdType.AUTO)
    private Long logId;

    @ApiModelProperty(value = "操作用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "操作类型(login/reserve/cancel)")
    @TableField("operation_type")
    private String operationType;

    @ApiModelProperty(value = "操作详情")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "操作IP")
    @TableField("ip_address")
    private String ipAddress;

    @ApiModelProperty(value = "操作时间")
    @TableField("create_time")
    private LocalDateTime createTime;


}
